package com.coderman.basketball.app.clientimpl;

import com.coderman.basketball.app.command.activity.SignUpCommand;
import com.coderman.basketball.app.executor.SignUpExecutor;
import com.coderman.basketball.client.api.activity.ActivityFacade;
import com.coderman.basketball.client.dto.activity.SignUpDTO;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Description:
 * date: 2021/5/19
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
@Service
public class ActivityFacadeImpl implements ActivityFacade {
    @Autowired
    private SignUpExecutor signUpExecutor;

    @Override
    public void signUpShow(SignUpDTO signUpDTO) {
        signUpExecutor.exeCommand(SignUpCommand.builder().signUpDTO(signUpDTO).build());
    }
}
